/**
 * NewsInfoService.java
 * 2008-3-13
 * @author 屈甲康qujiakang@gmail.com
 */
package org.jackysoft.service;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import java.util.Date;
import java.util.concurrent.ExecutionException;
import org.jackysoft.data.IDataProvider;
import org.jackysoft.entity.nosql.NewsInfo;
import org.springframework.dao.DataAccessException;

import com.itextpdf.text.DocumentException;

/**
 * @author Administrator
 * 
 */
public interface NewsInfoService extends IDataProvider<String,NewsInfo>{


	
	Collection<NewsInfo> gets(int start,int size,String catalog)	throws DataAccessException;

	
	int countByCatalog(String catalog) throws DataAccessException;
	

	void create(String catalog,Date createDate, File upLoad, String upLoadFileName) throws InterruptedException, ExecutionException, IOException,DocumentException;
	
	void create(String catalog,Date createDate, InputStream input, String upLoadFileName) throws InterruptedException, ExecutionException, IOException,DocumentException;
	
	void removeByCatalog(String catalog);

}
